import request from '@/utils/request'

// 查询热卷材质列表
export function listCaizhi(query) {
  return request({
    url: '/system/caizhi/list',
    method: 'get',
    params: query
  })
}

// 查询热卷材质详细
export function getCaizhi(czId) {
  return request({
    url: '/system/caizhi/' + czId,
    method: 'get'
  })
}

// 新增热卷材质
export function addCaizhi(data) {
  return request({
    url: '/system/caizhi',
    method: 'post',
    data: data
  })
}

// 修改热卷材质
export function updateCaizhi(data) {
  return request({
    url: '/system/caizhi',
    method: 'put',
    data: data
  })
}

// 删除热卷材质
export function delCaizhi(czId) {
  return request({
    url: '/system/caizhi/' + czId,
    method: 'delete'
  })
}

// 导出热卷材质
export function exportCaizhi(query) {
  return request({
    url: '/system/caizhi/export',
    method: 'get',
    params: query
  })
}